package com.codedef.diary.domain;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

public class Diary implements Serializable {

    private Integer id;

    private Integer userId;

    private Date dateTime;

    private String content;

    private String weather;

    private String location;

    private String[] pictureList;

    public Diary() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String[] getPictureList() {
        return pictureList;
    }

    public void setPictureList(String[] pictureList) {
        this.pictureList = pictureList;
    }

    @Override
    public String toString() {
        return "Diary{" +
                "id=" + id +
                ", userId=" + userId +
                ", dateTime=" + dateTime +
                ", content='" + content + '\'' +
                ", weather='" + weather + '\'' +
                ", location='" + location + '\'' +
                ", pictureList=" + Arrays.toString(pictureList) +
                '}';
    }
}
